home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 December / PC Answers December 1995 (disc errors).iso / mxc / intro.dir / 00005_Script_MS for Intro < prev    next >
Text File  |  1995-05-04  |  5KB  |  177 lines

  1. global fixPal, myLine, auto, ok, gSliderBar, fullMoov, csn, lem, palName, bd, gAudBlrb
  2. global tpal, myLine2, gExtraVid, gDirMovie, gmyLineKeep, gBackColor, gForeColor, profileVid
  3. global gVolume, gFirstTimeIn
  4.  
  5. on startMovie
  6.   if the machineType < 256 then
  7.     openXlib "XPALETTE"
  8.     set fixPal = fixPalette(mNew,the stageleft,the stagetop,the stageright,the stagebottom)
  9.   else
  10.     openXlib "XPALETTE.dll"
  11.     set fixPal = xPalette(mNew)
  12.   end if
  13.   if myLine <> 1 then set the controller of cast 101 to false
  14.   if myLine <> 1 then set the video of cast 101 to false
  15.   set auto = 0
  16.   set ok = 3
  17.   set myLine = 1
  18.   set myLine2 = 1
  19.   set gmyLineKeep = 1
  20.   set profileVid = 0
  21.   put 201 into tpal
  22.   put the duration of cast 101 into fullMoov
  23.   set gExtraVid = 1    --NEW VAR FOR EXTRA VIDEO SEGMENTS OUTSIDE OF ASSET LIST
  24.   set csn = 6
  25.   cursor 0
  26. end
  27.  
  28. on buttonsUp
  29.   set the castNum of sprite 8 to 27
  30.   set the castNum of sprite 11 to 51
  31.   set the castNum of sprite 12 to 52
  32.   set the castNum of sprite 13 to 53
  33.   set the castNum of sprite 14 to 54
  34.   set the castNum of sprite 15 to 55
  35.   set the castNum of sprite 16 to 56
  36.   set the castNum of sprite (myLine + 10) to (myLine + 60)
  37.   updateStage
  38. end
  39.  
  40. on setVid   
  41.   if myLine = -1 then exit
  42.   if myLine2 = myLine then exit
  43.   if myLine >= 1 then
  44.     set the castNum of sprite 24 to 26
  45.     updateStage
  46.   end if
  47.   set the locV of sprite 3 to -500
  48.   set the locV of sprite 4 to -500
  49.   set the locV of sprite 5 to -500
  50.   set the locV of sprite 6 to -500
  51.   set the locV of sprite 7 to -500
  52.   blankBut
  53.   updateStage
  54.   set the castNum of sprite 24 to myLine + 100
  55.   put the duration of cast (myLine + 100) into fullMoov
  56.   put myLine + 200 into palName
  57.   puppetPalette palName
  58.   patchPal
  59.   put myLine into myLine2
  60.   -- THE NEXT 5 LINES MAY CHANGE FROM SECTION TO SECTION
  61.   set the locV of sprite 3 to 40
  62.   set the locV of sprite 4 to 74
  63.   set the locV of sprite 5 to 115
  64.   set the locV of sprite 6 to 155
  65.   set the locV of sprite 7 to 191
  66.   set the video of cast (myLine + 100) to true
  67.   set the controller of cast (myLine + 100) to gSliderBar
  68.   updateStage
  69.   set the volume of sprite 24 to gVolume
  70.   cursor 0
  71. end
  72.  
  73. on autoPlay
  74.   put the duration of cast (myLine + 100) into fullMoov
  75.   set the castNum of sprite 7 to 35
  76.   updateStage
  77.   set auto to 1
  78. end
  79.  
  80. on check
  81.   global myLine, auto, csn, gExtraVid, fullMoov
  82.   
  83.   if myLine > (csn + gExtraVid) then exit
  84.   if the movieTime of sprite 24 > 0 and the movieTime of sprite 24 <> fullMoov then exit
  85.   if auto = 0 and the movieTime of sprite 24 = fullMoov then
  86.     if myLine = (csn + gExtraVid) then
  87.       set the movieTime of sprite 24 to 0
  88.       exit
  89.     end if
  90.   end if
  91.   if auto = 1 and the movieRate of sprite 24 = 0 then  
  92.     if the movieTime of sprite 24 = fullMoov then
  93.       if myLine = csn then
  94.         set auto = 0
  95.         set myLine = 1
  96.         set the castNum of sprite 7 to 25
  97.         buttonsUp
  98.         exit
  99.       else
  100.         set myLine to myLine + 1
  101.         buttonsUp
  102.       end if
  103.     else
  104.       if the movieTime of sprite 24 = 0 and auto = 1 then set the movieRate of sprite 24 = 1
  105.       else
  106.         set the movieRate of sprite 24 = 0
  107.       end if
  108.     end if
  109.   end if
  110. end
  111.  
  112. on blankBut
  113.   global gAudBlrb, auto
  114.   
  115.   if myLine = 1 then
  116.     set the castNum of sprite 4 to 30
  117.     set the castNum of sprite 6 to 24
  118.     if auto = 0 then
  119.       set the castNum of sprite 7 to 25
  120.     else set the castNum of sprite 7 to 35
  121.   else
  122.     if myLine > 1 and myLine < csn  then
  123.       set the castNum of sprite 4 to 22
  124.       set the castNum of sprite 6 to 24
  125.       if auto = 0 then
  126.         set the castNum of sprite 7 to 25
  127.       else set the castNum of sprite 7 to 35
  128.     else
  129.       if myLine = csn then  -- ON THE LAST ONE
  130.         set the castNum of sprite 4 to 22
  131.         set the castNum of sprite 6 to 40
  132.         if auto = 0 then
  133.           set the castNum of sprite 7 to 25
  134.         else set the castNum of sprite 7 to 35
  135.       else
  136.         if myLine = (csn + gExtraVid) then
  137.           set the castNum of sprite 4 to 30
  138.           set the castNum of sprite 6 to 40
  139.           set the castNum of sprite 7 to 50
  140.         else
  141.           if gAudBlrb = 1 then
  142.             set the castNum of sprite 4 to 30
  143.             set the castNum of sprite 6 to 40
  144.             set the castNum of sprite 7 to 50
  145.           end if
  146.         end if
  147.       end if
  148.     end if
  149.   end if
  150. end
  151.  
  152. -- NOT PRESENTLY BEING USED
  153. on flushMe
  154.   if the machineType = 256 then
  155.     OpenXlib "GLOBMEM"
  156.     Set OBJ = GLOBMEM(mNew)
  157.     OBJ(mFreeHandles, 8192)
  158.     OBJ(mFreeHandles, 8192)
  159.     OBJ(mFreeHandles, 8192)
  160.     OBJ(mDispose)
  161.   end if
  162. end
  163.  
  164. on patchPal
  165.   fixPal(mPatchIt)
  166. end
  167.  
  168. on stopMovie
  169.   if the machineType < 256 then
  170.     fixPal(mDispose)
  171.     closeXlib "XPALETTE"
  172.   else
  173.     fixPal(mDispose)
  174.     closeXlib "XPALETTE.dll"
  175.   end if
  176. end
  177.